Hello, and welcome to this
demonstration on using the data scraping technique
to scrape data in Studio. In this video, you will learn
to create a workflow that will search for "Automation
is Future" in Google Search, and scrapes titles of the first 100 websites
appearing in the result. Let's begin. Search for an Open Browser activity
in the Activities panel, and drag and drop it
in the Designer panel. Rename the sequence as Data Scraping and add
an annotation to it. Rename the Open Browser
activity as www.google.com. Enter the URL, www.google.com in the text box of the
Open Browser activity. Navigate to the Properties
panel and select "Edge" from the Browser
Type drop-down menu. Save and run the workflow
to see if it opens the URL. Google Search is
opened successfully. Search for a type into activity and drag and drop it
in the Do container of the Open Browser
activity. Rename it. Click the "Indicate
element inside browser" link and indicate the
Google Search bar. Enter the text
"Automation is Future", followed by enter, a special key in the text area of the
Type Into activity. Save and run the workflow. You can see that Google successfully displays
the search results. Now go back to UiPath Studio. Click the "Data Scraping"
button in the Design ribbon. In the Extract Wizard, click "Next" and select the website link of the
first search result. Click "Next" and select the website link of the
second search result. This will help the wizard to identify the pattern
of the results. In the Text Column Name box, change the default Column
1 text to Side Titles , and click "Next". A preview of results is shown in the Preview
Data section. Leave the maximum number
of results as 100. It will extract the data for the first 100 search
results only. Now click "Finish". A dialog box appears
that asks if this data spans across
multiple pages. Click "Yes" and select
the next button at the bottom of the
search results page. Click the "Extract
structured data activity" and navigate
to its Properties panel. The output is stored in the
variable ExtractDataTable. Navigate to the Variables
panel and change the scope of the variable
to Data Scraping Sequence. Search for Write CSV activity
and drag and drop it below the Data Scraping
Sequence. Rename it. Enter SearchResult.csv
in the first text box, and the data tables name in the second text box, which
is ExtractDataTable. Save the project and run it. You can see that the data from all pages are being
scraped one by one. Wait till the process
is completed. Go to the Project folder
where the CSV file is saved and open the file to see
if the results are stored. You can see that all the results
are stored successfully. This way, the data scraping technique can be used in Studio. It is encouraged to
create the workflow as demonstrated and scrape the
data using this technique. Thank you for watching.